const type = '1' //  1-正式环境 2-测试环境
let api, wx, redirectUri
// let vConsole = new window.VConsole()
if (type === '1') {
  api = {
    host: '/p/10/0/5/180/6888/ormrpc/RestServer', // 正式
    ddlHost: '/p/10/75/1/213/9002'
  }
  redirectUri = 'http://t1.vanke.com:6888/ddl/#/login'
} else {
  api = {
    host: '/p/10/0/5/164/6888/ormrpc/RestServer', // 测试
    ddlHost: '/p/10/75/1/213/9002'
  }
  redirectUri = 'http://t1.vanke.com:6888/ddlTest/#/login'
}

// 微信部分的配置
wx = {
  appid: 'wx45362d8e0247a7c7', // vanke
  agentid: '3',
  link: 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx45362d8e0247a7c7&redirect_uri=' + encodeURIComponent(redirectUri) + '&response_type=code&scope=snsapi_userinfo&agentid=3&state=state#wechat_redirect',
  redirectUri
}
export default {
  type,
  api,
  wx
}
